﻿using ML.Entity;
using System.Collections.Generic;

namespace ML.IBusiness
{
    /// <summary>
    /// 商户结算业务接口
    /// </summary>
    public interface ISettlementBusiness
    {
        /// <summary>
        /// 根据查询条件查询商户结算信息
        /// </summary>
        /// <param name="settlementSearch">商户结算查询条件</param>
        /// <returns></returns>
        BaseResult<Pager<SettlementResponse>> List(SettlementSearch settlementSearch);

        /// <summary>
        /// 商户创建结算管理
        /// </summary>
        /// <param name="settlementEntity">商户结算实体</param>
        /// <returns></returns>
        BaseResult<bool> Add(SettlementEntity settlementEntity);

        /// <summary>
        /// 更改商户结算状态
        /// </summary>
        /// <param name="Id">商户结算Id</param>
        /// <param name="Type">类别（2-已完成；3-失败；4-取消）</param>
        /// <param name="Optioner">结算人</param>
        /// <param name="Remark">备注</param>
        /// <returns></returns>
        BaseResult<bool> UpdateSettlementStatus(string Id, int Type, string Optioner, string Remark);
    }
}